class State < ActiveRecord::Base
belongs_to :machine
has_many :transition_as_from,:class_name=>'StateTransition',:foreign_key=>'from_id'
has_many :transition_as_to,:class_name=>'StateTransition',:foreign_key=>'to_id'
end
